# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=tk-lib
_pkgname=${pkgname//-/}
pkgver=0.7
pkgrel=0
pkgdesc="Tk standard library"
url="https://core.tcl-lang.org/tklib"
arch="noarch"
license="TCL"
depends="tk"
makedepends="tcl"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://core.tcl-lang.org/tklib/attachdownload/$_pkgname-$pkgver.tar.bz2?page=Downloads&file=tklib-$pkgver.tar.bz2"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0322611c1dea8eebebe3f8f15ec33b695b074329ce9602aeb93d04985f486237f3ce89f1c42a5c148e12ae00b51be8c889c7db77977a0cc4204ac5eaad2cfec2  tk-lib-0.7.tar.bz2
"
